package com.ruoyi.bussiness.mapper;

import com.ruoyi.bussiness.domain.SysListRelatedRead;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 清单相关阅读Mapper接口
 * 
 * @author ruoyi
 * @date 2023-12-20
 */
public interface SysListRelatedReadMapper 
{
    /**
     * 查询清单相关阅读
     * 
     * @param relatedId 清单相关阅读主键
     * @return 清单相关阅读
     */
    public SysListRelatedRead selectSysListRelatedReadByRelatedId(Long relatedId);

    /**
     * 查询清单相关阅读列表
     * 
     * @param sysListRelatedRead 清单相关阅读
     * @return 清单相关阅读集合
     */
    public List<SysListRelatedRead> selectSysListRelatedReadList(SysListRelatedRead sysListRelatedRead);

    /**
     * 新增清单相关阅读
     * 
     * @param sysListRelatedRead 清单相关阅读
     * @return 结果
     */
    public int insertSysListRelatedRead(SysListRelatedRead sysListRelatedRead);

    /**
     * 修改清单相关阅读
     * 
     * @param sysListRelatedRead 清单相关阅读
     * @return 结果
     */
    public int updateSysListRelatedRead(SysListRelatedRead sysListRelatedRead);

    /**
     * 删除清单相关阅读
     * 
     * @param relatedId 清单相关阅读主键
     * @return 结果
     */
    public int deleteSysListRelatedReadByRelatedId(Long relatedId);

    /**
     * 批量删除清单相关阅读
     * 
     * @param relatedIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysListRelatedReadByRelatedIds(Long[] relatedIds);

    /**
     * @Author shining
     * @Description //TODO 批量新增清单的相关阅读
     * @Date 17:53 2023/12/20
     * @Param [sysListRelatedReadList]
     * @return int
     **/
    int batchInsertRelatedRead(List<SysListRelatedRead> sysListRelatedReadList);

    /**
     * @Author shining
     * @Description //TODO 根据清单ID 删除相关阅读
     * @Date 17:55 2023/12/20
     * @Param [checkListId]
     * @return int
     **/
    public int deleteSysListRelatedReadByListId(Long checkListId);





}
